﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace SBPweb.Data.Generic
{

	/// <summary>
	/// Interface to construct delete command
	/// </summary>
	/// <typeparam name="TIdentityObject">IdentityObject</typeparam>
	public interface IDeleteFactory<TIdentityObject> : IDbToBusinessEntityNameMapper
    {

		/// <summary>
		/// This methods creates a delete command by the given Database and IdentityObject parameters
		/// </summary>
		/// <param name="db">Database db</param>
		/// <param name="identity">TIdentityObject identity</param>
		/// <returns>DbCommand</returns>
        DbCommand ConstructDeleteCommand(Database db, TIdentityObject identity);
    }
}
